import { defineStore } from 'pinia';

export const useUserStore = defineStore('user', {
  state: () => ({
    userid: null, // 存储用户 ID
  }),
  actions: {
    setUserId(id) {
      this.userid = id; // 设置用户 ID
    },
  },
});
